home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12499 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.netland.nl!usenet
  2. From: Martin Bilstra <martin@advance.nl>
  3. Newsgroups: comp.lang.c
  4. Subject: file open ??
  5. Date: Mon, 01 Apr 1996 12:30:42 +0100
  6. Organization: Advance Interactive
  7. Message-ID: <315FBE62.6E4A@advance.nl>
  8. NNTP-Posting-Host: ms1tty00.miconnet.nl
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  13.  
  14. Hello everyone,
  15.  
  16. I'm having the following problem :
  17.  
  18. In a program I'm using some extern variables. After calling an other function those variables are 
  19. getting there values, after this the function returns back to the main program with the related 
  20. value. In the main program the extern variables now have a value where I work with, but then I 
  21. get a problem. After returning from the function, I open a file but then the values belonging to 
  22. the extern variables are gone (there value is nothing).
  23.  
  24. My own solution was the following :
  25. I open the file before I call the function and I close the file after I stored the variables. But 
  26. I'm not convinced that's the real solution to the problem, because in other programs I do the 
  27. same and then things are going well. 
  28.  
  29. Can someone help me ?
  30. Thanks anyway,
  31.  
  32. Martin.
  33.